<template>
  <view>
		<view class="tui-actionsheet"  :class="[show ? 'tui-actionsheet-show' : '']">
			<view class="regional-selection">
				<view class="specs">
				    <view class="specs-top">
				        <view style="font-size: 35rpx;font-weight: bold">发货说明</view>  
						<view class="flex cancel-button">
							<u-icon name="close-circle" color="#999999" size="22" @click="handleClickMask()"></u-icon>					
						</view>   
				    </view>	
								
					<view class="flex flex-direction ml-20 mt-20">
						<text style="font-size: 30rpx;color: #0a0a0a; font-weight: bold">发货方式</text>
						<text style="font-size: 24rpx;color: rgba(1, 31, 55, 0.6); margin-top: 15rpx;line-height: 42rpx;">{{goods_send.ShippingSet}} </text>
					</view>
					
					<view class="flex flex-direction ml-20 mt-20">
						<text style="font-size: 30rpx;color: #0a0a0a; font-weight: bold">发货时间</text>
						<text style="font-size: 24rpx;color: rgba(1, 31, 55, 0.6); margin-top: 15rpx;line-height: 42rpx;">{{goods_send.ShippingTimeSet}} </text>
					</view>
					
					<view class="flex flex-direction ml-20 mt-20">
						<text style="font-size: 30rpx;color: #0a0a0a; font-weight: bold">器材档期</text>
						<text style="font-size: 24rpx;color: rgba(1, 31, 55, 0.6); margin-top: 15rpx;line-height: 42rpx;">{{goods_send.ShippingDqSet}} </text>
					</view>
					
					<view class="flex flex-direction ml-20 mt-20">
						<text style="font-size: 30rpx;color: #0a0a0a; font-weight: bold">发货图像</text>
						<view  style="display: flex; margin-top: 20rpx;  justify-content: center;">
							<image :src="goods_send.ShippingImgSet" style="width: 618rpx;height: 376rpx;"></image>
						</view>
					</view>
				
				    				    
				</view>			
			</view>
		</view>
		<!-- 遮罩层 -->
		<view  class="tui-actionsheet-mask"  :class="[show ? 'tui-mask-show' : '']"	  @tap="handleClickMask"></view>
  </view>
</template>
 
<script>
export default {
  // name: "tuiActionsheet",
  props: {
    //点击遮罩 是否可关闭
    maskClosable: {
      type: Boolean,
      default: true,
    },
    //显示操作菜单
    show: {
        type: Boolean,
        default: false,
       },
    },
	data(){
		return{
			shopInfo:{},
			goods_send:{}
		}
	},
	created() {
		this.shopInfo = uni.getStorageSync('shopInfo')
	},
    methods:  {
		handleClickMask() {
			 this.$emit("chooseCancel",{type:1});
		},   
		NgoodsSpec(goodsId){
			let that=this
			let obj_data={
			   goodsId,
			   type:2
			}  
			this.$http.shopInfo(obj_data).then(res =>{
			 if(res.resCode=="9999"){					
				that.goods_send=res.data.list
			 }else{
			   uni.showToast({title:res.resMessage,icon:"none"})
			 }
			})
		}
    },
};
</script>
 
<style scoped lang="less">
	
	.cancel-button{
		position: absolute;
		margin-top: 10rpx;
		right: 20rpx;
	}
	
.tui-actionsheet {
  width: 100%;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  visibility: hidden;
  transform: translate3d(0, 100%, 0);
  transform-origin: center;
  transition: all 0.3s ease-in-out;
  // background: #eaeaec;
  min-height: 100rpx;

}
 
.tui-actionsheet-show {
  transform: translate3d(0, 0, 0);
  visibility: visible;
}
.regional-selection {
    // text-align: center;
  height: 991rpx;
  background: #fff;
  border-radius: 20rpx 20rpx 0rpx 0rpx;
}
.tui-actionsheet-mask {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9996;
  transition: all 0.3s ease-in-out;
  opacity: 0;
  visibility: hidden;
  
}
 
.tui-mask-show {
  opacity: 1;
  visibility: visible;
}


/* component/specs/index.wxss */

.specs-top-desc{
  display: flex;
  flex-direction: column;
  font-size: 25rpx;
  margin-left: 35rpx;
  color: gray;
  margin-top: 15rpx;
  
}

.specs-top-title{
  display: flex;
  flex-direction: row;
  justify-content: left;
  font-size: 25rpx;
  margin-left: 35rpx;  
  margin-top: 25rpx;
  
}

.localtion{
  display: flex;
  flex-direction: row;
  color: gray;
}

.specs-top{
  display: flex;
  flex-direction: row;
  font-size: 23rpx;
  justify-content: center;
  align-items: center;
  padding-bottom: 10rpx;
  // border-bottom: 1rpx solid rgb(240, 235, 235);
  padding-top: 20rpx;
 

 
}


</style>